How to properly assign a distinct variable in class without affecting the class variable it is based